# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-fastecdsa
_pkgname=fastecdsa
pkgver=3.0.1
pkgrel=1
pkgdesc='Fast elliptic curve digital signatures.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/fastecdsa/#files'
license=('Unlicense')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('ab3846c4be9ca60b1133def77194185b978b3a8ed5e6a9206fb5e61af71e35ec7359184a462be2add143903e9917307017a95f34b423f6c4f209b744a9dbb179')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

